﻿@if (!string.IsNullOrWhiteSpace(PdfUrls))
{
    @foreach (var pdfUrl in PdfUrls.Split('\n'))
    {
        <a href="@pdfUrl" target="_blank">
            <span class="oi oi-paperclip me-2">PDF</span>
        </a>
    }
}
<AuthorizeView Roles="@Roles">
    <Authorized>
        <a href="@UploadUrl">
            <span class="oi oi-cloud-upload">上传</span>
        </a>
    </Authorized>
</AuthorizeView>

@code {
    [Parameter]
    public string Roles { get; set; }
    [Parameter]
    public string PdfUrls { get; set; }
    [Parameter]
    public string UploadUrl { get; set; }
}
